﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MyProj.MVCProj3.BLL;
using MyProj.MVCProj3.DAL;
using MyProj.MVCProj3.IDAL;
using MyProj.MVCProj3.Model;

namespace TestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            bool IsOK = false;
            UserInfoService bll = new UserInfoService();
            IsOK=bll.AddEntity(new UserInfo()
            {
                Address = "12",
                Age = 18,
                DelFlag = 0,
                Email = "1@2.com",
                ErrorTime = 0,
                Gender = 1,
                LastLoginDate = new DateTime(2013, 5, 25),
                LastLoginIp = "0.0.0.0",
                NickName = "nick",
                Phone = "1111",
                SubTime = new DateTime(2013, 5, 22),
                UPwd = "pwd",
                UserName = "name"


            });
            Assert.AreEqual(true, IsOK);
        }
    }
}
